package com.worthtech.billportal.bean;

/**
 * CsPosMerAccountLsId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class CsPosMerAccountLsId implements java.io.Serializable {

	// Fields

	private String posMer;
	private String posTerm;

	// Constructors

	/** default constructor */
	public CsPosMerAccountLsId() {
	}

	/** full constructor */
	public CsPosMerAccountLsId(String posMer, String posTerm) {
		this.posMer = posMer;
		this.posTerm = posTerm;
	}

	// Property accessors

	public String getPosMer() {
		return this.posMer;
	}

	public void setPosMer(String posMer) {
		this.posMer = posMer;
	}

	public String getPosTerm() {
		return this.posTerm;
	}

	public void setPosTerm(String posTerm) {
		this.posTerm = posTerm;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CsPosMerAccountLsId))
			return false;
		CsPosMerAccountLsId castOther = (CsPosMerAccountLsId) other;

		return ((this.getPosMer() == castOther.getPosMer()) || (this
				.getPosMer() != null
				&& castOther.getPosMer() != null && this.getPosMer().equals(
				castOther.getPosMer())))
				&& ((this.getPosTerm() == castOther.getPosTerm()) || (this
						.getPosTerm() != null
						&& castOther.getPosTerm() != null && this.getPosTerm()
						.equals(castOther.getPosTerm())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPosMer() == null ? 0 : this.getPosMer().hashCode());
		result = 37 * result
				+ (getPosTerm() == null ? 0 : this.getPosTerm().hashCode());
		return result;
	}

}